package com.xnew.bean.common;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@TableName(" el_indv_user_info")
public class IndvUserInfo implements Serializable{

	@TableId
	private String indvUserNo; // 个人用户编号

	private String beltoDeptNo; //'所属部门编号'

	private String beltoOrgId; //'所属机构编号'

	private String indvUserName; //'用户姓名'

	private String mob; //'移动电话'

	private String fixTel; //'固定电话'

	private String eml; //'邮箱'

	private String beltoIvpbNo; //'所属专业委员会'

	private String helperNo; //'助手'

	private String unit; //'单位'

	private String unitPostName; //'单位任职'

	private String address; //联系地址

	private String zipCode; //邮编

	private String fax; //传真

	private String createPsnNo; //创建人编号

	private String createTime; //添加时间

	private String updatePsnNo; //修改人

	private String updateTime; //修改时间

	private String userTypeCode; //用户类别

	private String cmtteePostCode; //委员会任职

	private String dtcId; //证件类型id

	private String dtcNo; //证件号码

	@TableField(exist = false)
	private String openId; //门户用户id

	@TableField(exist = false)
	private String orgDutyCode; //'机构职务'

	@TableField(exist = false)
	private String orgAttrCode; //'机构属性'

	@TableField(exist = false)
	private String loginName;//登录名

	@TableField(exist = false)
	private String arIds;//角色编号

	@TableField(exist = false)
	private List<AuUserRole> auUserRoleList;

	@TableField(exist = false)
	private String deptName;//部门名称

	private static final long serialVersionUID = 789412319845132L;

	public String getArIds() {
		return arIds;
	}

	public List<AuUserRole> getAuUserRoleList() {
		return auUserRoleList;
	}

	public void setAuUserRoleList(List<AuUserRole> auUserRoleList) {
		this.auUserRoleList = auUserRoleList;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public void setArIds(String arIds ) {
		this.arIds = arIds;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getIndvUserNo() {
		return indvUserNo;
	}

	public void setIndvUserNo(String indvUserNo) {
		this.indvUserNo = indvUserNo == null ? null : indvUserNo.trim();
	}

	public String getBeltoDeptNo() {
		return beltoDeptNo;
	}

	public void setBeltoDeptNo(String beltoDeptNo) {
		this.beltoDeptNo = beltoDeptNo == null ? null : beltoDeptNo.trim();
	}

	public String getBeltoOrgId() {
		return beltoOrgId;
	}

	public void setBeltoOrgId(String beltoOrgId) {
		this.beltoOrgId = beltoOrgId == null ? null : beltoOrgId.trim();
	}

	public String getIndvUserName() {
		return indvUserName;
	}

	public void setIndvUserName(String indvUserName) {
		this.indvUserName = indvUserName == null ? null : indvUserName.trim();
	}

	public String getMob() {
		return mob;
	}

	public void setMob(String mob) {
		this.mob = mob == null ? null : mob.trim();
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	public String getFixTel() {
		return fixTel;
	}

	public void setFixTel(String fixTel) {
		this.fixTel = fixTel == null ? null : fixTel.trim();
	}

	public String getEml() {
		return eml;
	}


	public void setEml(String eml) {
		this.eml = eml == null ? null : eml.trim();
	}

	public String getBeltoIvpbNo() {
		return beltoIvpbNo;
	}

	public void setBeltoIvpbNo(String beltoIvpbNo) {
		this.beltoIvpbNo = beltoIvpbNo == null ? null : beltoIvpbNo.trim();
	}

	public String getHelperNo() {
		return helperNo;
	}

	public void setHelperNo(String helperNo) {
		this.helperNo = helperNo == null ? null : helperNo.trim();
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit == null ? null : unit.trim();
	}

	public String getUnitPostName() {
		return unitPostName;
	}

	public void setUnitPostName(String unitPostName) {
		this.unitPostName = unitPostName == null ? null : unitPostName.trim();
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address == null ? null : address.trim();
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode == null ? null : zipCode.trim();
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax == null ? null : fax.trim();
	}

	public String getCreatePsnNo() {
		return createPsnNo;
	}

	public void setCreatePsnNo(String createPsnNo) {
		this.createPsnNo = createPsnNo == null ? null : createPsnNo.trim();
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime == null ? null : createTime.trim();
	}

	public String getOrgDutyCode() {
		return orgDutyCode;
	}

	public void setOrgDutyCode(String orgDutyCode) {
		this.orgDutyCode = orgDutyCode == null ? null : orgDutyCode.trim();
	}

	public String getOrgAttrCode() {
		return orgAttrCode;
	}

	public void setOrgAttrCode(String orgAttrCode) {
		this.orgAttrCode = orgAttrCode == null ? null : orgAttrCode.trim();
	}

	public String getUpdatePsnNo() {
		return updatePsnNo;
	}

	public void setUpdatePsnNo(String updatePsnNo) {
		this.updatePsnNo = updatePsnNo == null ? null : updatePsnNo.trim();
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime == null ? null : updateTime.trim();
	}

	public String getUserTypeCode() {
		return userTypeCode;
	}

	public void setUserTypeCode(String userTypeCode) {
		this.userTypeCode = userTypeCode == null ? null : userTypeCode.trim();
	}

	public String getCmtteePostCode() {
		return cmtteePostCode;
	}

	public void setCmtteePostCode(String cmtteePostCode) {
		this.cmtteePostCode = cmtteePostCode == null ? null : cmtteePostCode.trim();
	}

	public String getDtcId() {
		return dtcId;
	}

	public void setDtcId(String dtcId) {
		this.dtcId = dtcId == null ? null : dtcId.trim();
	}

	public String getDtcNo() {
		return dtcNo;
	}

	public void setDtcNo(String dtcNo) {
		this.dtcNo = dtcNo == null ? null : dtcNo.trim();
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", indvUserNo=").append(indvUserNo);
		sb.append(", beltoDeptNo=").append(beltoDeptNo);
		sb.append(", beltoOrgId=").append(beltoOrgId);
		sb.append(", indvUserName=").append(indvUserName);
		sb.append(", mob=").append(mob);
		sb.append(", fixTel=").append(fixTel);
		sb.append(", eml=").append(eml);
		sb.append(", beltoIvpbNo=").append(beltoIvpbNo);
		sb.append(", helperNo=").append(helperNo);
		sb.append(", unit=").append(unit);
		sb.append(", unitPostName=").append(unitPostName);
		sb.append(", address=").append(address);
		sb.append(", zipCode=").append(zipCode);
		sb.append(", fax=").append(fax);
		sb.append(", createPsnNo=").append(createPsnNo);
		sb.append(", createTime=").append(createTime);
		sb.append(", updatePsnNo=").append(updatePsnNo);
		sb.append(", updateTime=").append(updateTime);
		sb.append(", userTypeCode=").append(userTypeCode);
		sb.append(", cmtteePostCode=").append(cmtteePostCode);
		sb.append(", dtcId=").append(dtcId);
		sb.append(", dtcNo=").append(dtcNo);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method corresponds to the database table  el_indv_user_info
	 *
	 * @mbg.generated Sun May 01 02:56:21 UTC 2022
	 */
	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		IndvUserInfo other = (IndvUserInfo) that;
		return (this.getIndvUserNo() == null ? other.getIndvUserNo() == null : this.getIndvUserNo().equals(other.getIndvUserNo()))
				&& (this.getBeltoDeptNo() == null ? other.getBeltoDeptNo() == null : this.getBeltoDeptNo().equals(other.getBeltoDeptNo()))
				&& (this.getBeltoOrgId() == null ? other.getBeltoOrgId() == null : this.getBeltoOrgId().equals(other.getBeltoOrgId()))
				&& (this.getIndvUserName() == null ? other.getIndvUserName() == null : this.getIndvUserName().equals(other.getIndvUserName()))
				&& (this.getMob() == null ? other.getMob() == null : this.getMob().equals(other.getMob()))
				&& (this.getFixTel() == null ? other.getFixTel() == null : this.getFixTel().equals(other.getFixTel()))
				&& (this.getEml() == null ? other.getEml() == null : this.getEml().equals(other.getEml()))
				&& (this.getBeltoIvpbNo() == null ? other.getBeltoIvpbNo() == null : this.getBeltoIvpbNo().equals(other.getBeltoIvpbNo()))
				&& (this.getHelperNo() == null ? other.getHelperNo() == null : this.getHelperNo().equals(other.getHelperNo()))
				&& (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
				&& (this.getUnitPostName() == null ? other.getUnitPostName() == null : this.getUnitPostName().equals(other.getUnitPostName()))
				&& (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
				&& (this.getZipCode() == null ? other.getZipCode() == null : this.getZipCode().equals(other.getZipCode()))
				&& (this.getFax() == null ? other.getFax() == null : this.getFax().equals(other.getFax()))
				&& (this.getCreatePsnNo() == null ? other.getCreatePsnNo() == null : this.getCreatePsnNo().equals(other.getCreatePsnNo()))
				&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
				&& (this.getUpdatePsnNo() == null ? other.getUpdatePsnNo() == null : this.getUpdatePsnNo().equals(other.getUpdatePsnNo()))
				&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
				&& (this.getUserTypeCode() == null ? other.getUserTypeCode() == null : this.getUserTypeCode().equals(other.getUserTypeCode()))
				&& (this.getCmtteePostCode() == null ? other.getCmtteePostCode() == null : this.getCmtteePostCode().equals(other.getCmtteePostCode()))
				&& (this.getDtcId() == null ? other.getDtcId() == null : this.getDtcId().equals(other.getDtcId()))
				&& (this.getDtcNo() == null ? other.getDtcNo() == null : this.getDtcNo().equals(other.getDtcNo()));
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method corresponds to the database table  el_indv_user_info
	 *
	 * @mbg.generated Sun May 01 02:56:21 UTC 2022
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getIndvUserNo() == null) ? 0 : getIndvUserNo().hashCode());
		result = prime * result + ((getBeltoDeptNo() == null) ? 0 : getBeltoDeptNo().hashCode());
		result = prime * result + ((getBeltoOrgId() == null) ? 0 : getBeltoOrgId().hashCode());
		result = prime * result + ((getIndvUserName() == null) ? 0 : getIndvUserName().hashCode());
		result = prime * result + ((getMob() == null) ? 0 : getMob().hashCode());
		result = prime * result + ((getFixTel() == null) ? 0 : getFixTel().hashCode());
		result = prime * result + ((getEml() == null) ? 0 : getEml().hashCode());
		result = prime * result + ((getBeltoIvpbNo() == null) ? 0 : getBeltoIvpbNo().hashCode());
		result = prime * result + ((getHelperNo() == null) ? 0 : getHelperNo().hashCode());
		result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
		result = prime * result + ((getUnitPostName() == null) ? 0 : getUnitPostName().hashCode());
		result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
		result = prime * result + ((getZipCode() == null) ? 0 : getZipCode().hashCode());
		result = prime * result + ((getFax() == null) ? 0 : getFax().hashCode());
		result = prime * result + ((getCreatePsnNo() == null) ? 0 : getCreatePsnNo().hashCode());
		result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
		result = prime * result + ((getUpdatePsnNo() == null) ? 0 : getUpdatePsnNo().hashCode());
		result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
		result = prime * result + ((getUserTypeCode() == null) ? 0 : getUserTypeCode().hashCode());
		result = prime * result + ((getCmtteePostCode() == null) ? 0 : getCmtteePostCode().hashCode());
		result = prime * result + ((getDtcId() == null) ? 0 : getDtcId().hashCode());
		result = prime * result + ((getDtcNo() == null) ? 0 : getDtcNo().hashCode());
		return result;
	}


	@Transient
	@JsonInclude(JsonInclude.Include.NON_NULL)
	@TableField(exist = false)
	private Map<String, Object> dictNameResult = new HashMap<String, Object>();

	public Map<String, Object> getDictNameResult() {
		return dictNameResult;
	}

	public void setDictNameResult(Map<String, Object> dictNameResult) {
		this.dictNameResult = dictNameResult;
	}

	//数据字典
	@Transient
	@JsonInclude(JsonInclude.Include.NON_NULL)
	public String[] buildIncludeField(){
		return new String[]{"userTypeCode","cmtteePostCode"};
	}

	/*数据字典*/
	@Transient
	@JsonInclude(JsonInclude.Include.NON_NULL)
	public String[] buildIncludeType(){
		return new String[]{"DG0090","DG0226"};
	}
}
